﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "IEventArgs.h"
#include "GcmpUiViewInterface.h"

namespace gcmp
{
    class Vector3d;
    class IUserDragEventData;
    class IGcmpUserDrag;
    /// \brief 用户拖放事件参数
    class GCMP_UI_VIEW_INTERFACE_EXPORT IUserDragEventArgs : public IEventArgs
    {
        DEFINE_CAST_DERIVED(gcmp::IUserDragEventArgs, gcmp::IEventArgs)
    public:
        /// \brief 获取鼠标拖放位置
        ///
        /// \return 位置坐标
        virtual Vector3d GetMouseDropPosition() const = 0;

        /// \brief 获取拖放事件数据
        ///
        /// \return 拖放事件数据指针
        virtual IUserDragEventData *GetUserDragEventData() const = 0;

        /// \brief 获取当前视口号
        ///
        /// \return 视口号
        virtual int GetCurrentUiviewId() const = 0;

        /// \brief 获取用户拖放管理器对象
        /// \return 用户拖放管理器对象
        virtual IGcmpUserDrag* GetGcmpUserDrag() const = 0;

        /// \brief 设置本次事件源
        ///
        /// \param 本次事件源
        virtual void SetEvent(const IEvent* pEvent) = 0;           
    };
}


